#ifndef _LOGMANAGER_H
#define _LOGMANAGER_H

#ifdef USE_LOG4CXX

#include <log4cxx/logger.h>

#else

#include <string>
// fake log4cxx implementation

#define LOG4CXX_DEBUG
#define LOG4CXX_INFO
#define LOG4CXX_WARN
#define LOG4CXX_ERROR
#define LOG4CXX_FATAL

namespace log4cxx
{
	typedef void* LoggerPtr;
	class Logger
	{
	public:
		static LoggerPtr getLogger(const std::string & name) {return NULL;}
	};
}

#endif

class LogManager
{
public:
#ifdef NO_INITLOG
	static void initlog(const std::string & logstr) {}
#else
	static void initlog(const std::string & logstr);
#endif

#ifdef USE_LOG4CXX
	static void configure();
#endif
};


#endif
